home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 5
/
Amiga Plus Sonderheft 1996 #5.iso
/
programme
/
imagedesk304
/
imagedesk
/
instdata.lha
/
instdata
/
rexx
/
ScanDirs.IDesk
< prev
next >
Wrap
Text File
|
1995-06-11
|
960b
|
46 lines
/* Recursively scans directories and generates thumbnails objects
for ImageDesk (doesn't save catalogs).
From Michael Schaffner.
Thanks Michael!
*/
OPTIONS RESULTS
if( ADDRESS() ~= "IDESK_REXXPORT" ) then
ADDRESS IDESK_REXXPORT
/* PARSE ARG ROOT */
IDGETPATH '"Zu durchsuchender Pfad : "'
ROOT = result
if (RIGHT(ROOT,1) ~== ':') & (RIGHT(ROOT,1) ~== '/')
then ROOT = ROOT||'/'
if ~show('L', "rexxsupport.library")
then do
if ~addlib('rexxsupport.library', 0, -30)
then
say "Added rexxsupport.library"
else do
say "Rexxsupport.library not available, exiting..."
exit 10
end
end
GENTHUMBNAILS ROOT
CALL SCANDIR(ROOT)
EXIT
SCANDIR: PROCEDURE
PARSE ARG AKTDIR
DIRFILES = ShowDir(AKTDIR,DIR)
DO I = 1 TO WORDS(DIRFILES)
GENTHUMBNAILS '"'||AKTDIR||WORD(DIRFILES,I)||'"'
DUMMY = SCANDIR(AKTDIR||WORD(DIRFILES,I)||'/')
END
RETURN 0